![]() |
GetThemeTabRegion |
||||
Header: | Appearance.h | Carbon status: | Supported | |
Obtains the region occupied by a tab.
OSStatus GetThemeTabRegion ( const Rect *inRect, ThemeTabStyle inStyle, ThemeTabDirection inDirection, ioRgn );
A pointer to a structure of type Rect. Before calling GetThemeTabRegion, set the rectangle to the boundary of the tab, in local coordinates.
A value of type ThemeTabStyle. Pass a constant specifying the relative position (front or non-front) and state of the tab to be examined. See
A value of type ThemeTabDirection. Pass a constant specifying the direction in which the tab is oriented. See
A value of type RgnHandle. On return, the region contains the actual dimensions and position of the tab, in local coordinates.
A result code.
Because a tab can have a non-rectangular shape, your application should call GetThemeTabRegion to get the actual region containing the tab under the current theme, in order to perform accurate hit testing.
This function is available with Appearance Manager 1.1 and later.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)